import { FormSchema } from '/@/components/BasicForm/type/form';

export const integrateSchemas: FormSchema = [
  {
    field: 'app',
    label: '第三方应用',
    component: 'Input',
    componentProps: {},
    labelWidth: 200,
    colProps: { span: 24 },
    required: true,
  },
  {
    field: 'cloudLinkServerUrl',
    label: '服务端安装包地址',
    component: 'Input',
    componentProps: {
      placeHolder: '请输入服务端安装包地址',
    },
    labelWidth: 200,
    colProps: { span: 24 },
    required: true,
  },
  {
    field: 'cloudLinkClientUrl',
    label: '客户端安装包地址',
    component: 'Input',
    componentProps: {
      placeHolder: '请输入客户端安装包地址',
    },
    labelWidth: 200,
    colProps: { span: 24 },
    required: true,
  },
  {
    field: 'cloudLinkAuthUrl',
    label: '云联认证回调URL',
    component: 'Input',
    componentProps: {
      placeHolder: '请输入云联认证回调URL',
    },
    labelWidth: 200,
    colProps: { span: 24 },
    required: true,
  },
  {
    field: 'cloudLinkServerDir',
    label: '服务端可执行程序安装目录',
    component: 'Input',
    componentProps: {
      placeHolder: '请输入服务端可执行程序安装目录',
    },
    labelWidth: 200,
    colProps: { span: 24 },
    required: true,
  },
  {
    field: 'clusterkey',
    label: '云联clusterKey',
    component: 'InputPassword',
    componentProps: {
      placeHolder: '请输入云联clusterKey',
      visibilityToggle: false,
    },
    labelWidth: 200,
    colProps: { span: 21 },
    required: true,
    dynamicDisabled: true,
  },
  {
    field: 'editSecret',
    label: '',
    component: 'Input',
    slot: 'edit',
    colProps: { span: 3 },
  },
  {
    field: 'managePort',
    label: 'Web Port',
    component: 'Input',
    componentProps: {
      placeHolder: '请输入Web Port',
    },
    labelWidth: 200,
    colProps: { span: 24 },
    required: true,
  },
  {
    field: 'rdpPort',
    label: 'Rdp Port',
    component: 'Input',
    componentProps: {
      placeHolder: '请输入Rdp Port',
    },
    labelWidth: 200,
    colProps: { span: 24 },
    required: true,
  },
  {
    field: 'vcredistX86Url',
    label: 'x86 安装包下载地址',
    component: 'Input',
    componentProps: {
      placeHolder: '请输入Microsoft Visual C++ 2008 Redistributable -x86 安装包下载地址',
    },
    labelWidth: 200,
    colProps: { span: 24 },
    required: true,
  },
  {
    field: 'vcredistX64Url',
    label: 'x64 安装包下载地址',
    component: 'Input',
    componentProps: {
      placeHolder: '请输入Microsoft Visual C++ 2008 Redistributable -x64 安装包下载地址',
    },
    labelWidth: 200,
    labelCol: { span: 4 },
    colProps: { span: 24 },
    required: true,
  },
];
